package com.qf.springboot2.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data

//声明该实体中的属性是用来封装application配置文件中stu下的配置内容
@ConfigurationProperties(prefix = "stu")
public class Stu {
    private String name;
    private Integer age;
    private List<String> hobbies;
    private List<String> friends;
}
